From: Khem Raj Date: Thu, 9 Apr 2026 23:28:07 +0000 (-0700) Subject: trivial-httpd: Fix const-correctness of slash pointer X-Git-Tag: archive/raspbian/2026.2-1+rpi1^2~9^2^2~9^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8b9acbe540ea9f320e3590aeb39f46e1b6d840b6;p=ostree.git trivial-httpd: Fix const-correctness of slash pointer strrchr() returns a 'const char *' when passed a 'const char *' argument. Declare the local 'slash' variable as 'const char *' to match, fixing a build failure with clang when -Werror,-Wincompatible-pointer-types-discards-qualifiers is active. Signed-off-by: Khem Raj --- diff --git a/src/ostree/ostree-trivial-httpd.c b/src/ostree/ostree-trivial-httpd.c index 4a0c6b00..b5a52e61 100644 --- a/src/ostree/ostree-trivial-httpd.c +++ b/src/ostree/ostree-trivial-httpd.c @@ -281,7 +281,7 @@ do_get (OtTrivialHttpd *self, SoupServer *server, SoupServerMessage *msg, const do_get (OtTrivialHttpd *self, SoupServer *server, SoupServerMessage *msg, const char *path) #endif { - char *slash; + const char *slash; int ret; struct stat stbuf;